package com.cmict.data.infra.controller.admin.rdb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cmict.data.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 数据库 Excel 导出 Request VO", description = "参数和 RdbPageReqVO 是一致的")
@Data
public class RdbExportReqVO {

    @ApiModelProperty(value = "库类型")
    private String type;

    @ApiModelProperty(value = "数据库ip")
    private String ip;

    @ApiModelProperty(value = "数据库端口")
    private String port;

    @ApiModelProperty(value = "数据库账号")
    private String username;

    @ApiModelProperty(value = "数据库密码")
    private String password;

    @ApiModelProperty(value = "数据库名称")
    private String databaseName;

    @ApiModelProperty(value = "别名")
    private String alias;

    @ApiModelProperty(value = "描述")
    private String description;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "开始创建时间")
    private LocalDateTime beginCreateTime;

    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @ApiModelProperty(value = "结束创建时间")
    private LocalDateTime endCreateTime;

}
